package com.ruicar.afs.cloud.channel.affiliation.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruicar.afs.cloud.channel.affiliation.condition.AffiliationCondition;
import com.ruicar.afs.cloud.channel.affiliation.entity.ChannelAffiliatedUnitsTemp;
import com.ruicar.afs.cloud.channel.affiliation.vo.ChannelAffiliatedUnitsTempVo;

import java.util.List;

/**
 * @author panhj
 * @date 2020/05/19
 */
public interface ChannelAffiliatedUnitsTempService extends IService<ChannelAffiliatedUnitsTemp> {
    /**
     * 查询挂靠信息
     *
     * @param page,affiliation
     * @return IPage<List < ChannelAffiliatedUnitsTempVo>>
     */
    IPage<List<ChannelAffiliatedUnitsTempVo>> getChannelAffiliatedUnitsTempApply(Page page, AffiliationCondition affiliation);

    IPage<List<ChannelAffiliatedUnitsTempVo>> getChannelAffiliatedUnitsTempInfo(Page page, AffiliationCondition affiliation,List<Long> ids);

    /**
     * 根据条件查询挂靠信息
     *
     * @param page,affiliation
     * @return IPage<List < ChannelAffiliatedUnitsTemp>>
     */
    IPage<List<ChannelAffiliatedUnitsTemp>> getChannelAffiliatedUnitsTemp(Page page, AffiliationCondition affiliation);

    /**
     * 根据社会统一代码，渠道id，挂靠类型查询挂靠信息
     *
     * @param socUniCrtCode,channelId,busiType
     * @return ChannelAffiliatedUnitsTemp
     */
    ChannelAffiliatedUnitsTemp getInfoByIdTypeSocUniCrtCode(String socUniCrtCode, String busiType);


    /**
     * 根据社会统一代码查询网约车合作平台
     *
     * @param socUniCrtCode
     * @return List<ChannelAffiliatedUnitsTemp>
     */
    List getCooperPlatList(String socUniCrtCode);
}
